/**
 * 
 */
package habitcoach.core.task;

import java.io.Serializable;

/**
 * @author Coddy created on 2010-4-24
 * 
 */
public class TaskImpl implements Task, Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = -6669061412190773894L;
	private TaskRating rating;
	private TaskStatus status;

	public TaskImpl()
	{
		this(DEFAULT_STATUS, DEFAULT_RATING);
	}

	public TaskImpl(TaskStatus status, TaskRating rating)
	{
		super();
		this.rating = rating;
		this.status = status;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see habitcoach.core.task.Task#getRating()
	 */
	@Override
	public TaskRating getRating()
	{
		return rating;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see habitcoach.core.task.Task#getStatus()
	 */
	@Override
	public TaskStatus getStatus()
	{
		return status;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see habitcoach.core.task.Task#setRating(habitcoach.core.task.TaskRating)
	 */
	@Override
	public void setRating(TaskRating rating)
	{
		this.rating = rating;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see habitcoach.core.task.Task#setStatus(habitcoach.core.task.TaskStatus)
	 */
	@Override
	public void setStatus(TaskStatus status)
	{
		this.status = status;
	}

}
